package com.museum.service.impl;

import com.museum.entity.AdminUser;
import com.museum.mapper.AdminUserMapper;
import com.museum.service.IAdminUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Akihi
 * @since 2022-12-09
 */
@Service
public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser> implements IAdminUserService {

    @Override
    public AdminUser getByUsername(String username) {
        return query().eq("username", username).one();
    }
}
